package com.aspose.cells;

class zbow implements zahz {
   private int a;
   private zmf b = null;

   public zbow(int var1) {
      this.a = var1;
      this.b();
   }

   public void b() {
      switch(this.a) {
      case 412:
         this.b = new zmf(0.0D, 0.0D);
         break;
      case 413:
         this.b = new zmf(1.0D, 0.0D);
      }

   }

   public zagu a() {
      return new zaam(com.aspose.cells.b.a.zr.a(this.b));
   }

   public boolean a(zagu var1, boolean var2) {
      return var1.b() == 12;
   }

   public zagu a(zagu var1, zaay var2, boolean var3) {
      zmf var4 = null;
      var1 = var1.e(var2);
      switch(var1.b()) {
      case 0:
         return var1;
      case 3:
         var4 = new zmf(((zyy)var1).k(), 0.0D);
         break;
      case 12:
         return zyw.a;
      default:
         Object var5 = var1.c();
         if (var5 != null) {
            try {
               var4 = new zmf(com.aspose.cells.b.a.zr.a(var5));
            } catch (Exception var7) {
               return zze.a;
            }
         }
      }

      if (var4 != null) {
         switch(this.a) {
         case 412:
            this.b = this.b.a(var4);
            return null;
         case 413:
            this.b = this.b.c(var4);
            return null;
         }
      }

      return zyw.a;
   }

   public zagu a(zagu var1, zaay var2, boolean var3, int var4) {
      zmf var5 = null;
      var1 = var1.e(var2);
      switch(var1.b()) {
      case 0:
         return var1;
      case 3:
         var5 = new zmf(((zyy)var1).k(), 0.0D);
         break;
      case 12:
         return zyw.a;
      default:
         Object var6 = var1.c();
         if (var6 != null) {
            try {
               var5 = new zmf(com.aspose.cells.b.a.zr.a(var6));
            } catch (Exception var8) {
               return zze.a;
            }
         }
      }

      if (var5 != null) {
         switch(this.a) {
         case 412:
            if (var4 > 1) {
               var5.a(var5.a() * (double)var4);
               var5.b(var5.b() * (double)var4);
            }

            this.b = this.b.a(var5);
            return null;
         case 413:
            if (var4 > 1) {
               do {
                  this.b = this.b.c(var5);
                  --var4;
               } while(var4 != 0);
            } else {
               this.b = this.b.c(var5);
            }

            return null;
         }
      }

      return zyw.a;
   }
}
